package com.easylinkin.sm.constant;

import lombok.experimental.UtilityClass;

/**
 * 数据字典常量
 *
 * @author wujie
 * @since 0.1.1,  2019/08/22
 */
@UtilityClass
public class DictItemConstant {

  /**
   * 异常消息常量
   */
  @UtilityClass
  public class Error {

    /**
     * 字典编码不能为空
     */
    public static final String DICT_CODE_NOTNULL = "dictItem.code.not-null";

    /**
     * 删除失败，存在子节点
     */
    public static final String DELETE_FAIL_HASCHILD = "dictItem.delete_fail_has-child";

    /**
     * 操作失败，编码重复
     */
    public static final String DICT_CODE_REPEAT = "dictItem.code.repeat";

    /**
     * 操作失败，名称重复
     */
    public static final String DICT_NAME_REPEAT = "dictItem.name.repeat";
  }

  /**
   * 附加数据
   */
  @UtilityClass
  public class Attach {

    /**
     * 关键字
     */
    public static final String KEYWORD = "keyword";

    /**
     * 附件i18n对象
     */
    public static final String I18N = "i18n";
  }
}
